toOption

fun toOption(): Option<L>

Returns a Some containing the Left value if it exists, or a None if this is a Right.

Return

a Some containing the Left value if it exists, or a None if this is a Right.